package com.threeday;

public class Demo4 {
    public static void main(String[] args) {
           //存2个人/菜
           // 人：对象
           //菜： 对象
          Person person=new Person();
          person.id=001;
          person.uName="zs";
          person.age=12;
          person.passWord="123";

          Person person1=new Person();
          person1.id=002;
          person1.uName="lisi";
          person1.age=12;
          person1.passWord="123456";

          Person[]  users=new Person[3];
          users[0]=person;
          users[1]=person1;

         // System.out.println(users[0].uName+","+users[0].passWord);
           for (int i=0;i<users.length;i++){
               System.out.println(users[i].uName+","+users[i].passWord);
           }
    }
}
